<?xml version='1.0' encoding='ISO-8859-1' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui"
	xmlns:f="http://java.sun.com/jsf/core">
	<body>
		<div>
			<ui:insert name="menu">
				<h:form>
 				 <p:panel id="panelMenu" style="font-size:11px;width: 90%;">
 				 	<h:panelGrid id="msgBoasVindas" columns="1" style="text-align: center;">
 				 		
 				 		<h:outputLabel 
 				 			value="#{mensagem['seja.bemvindo']}" 
 				 			rendered="true"
 				 			/>
 				 		<h:outputLabel 
 				 			style="font-weight:bold"  
 				 			value="#{mensagem['usuario.visitante']}" 
 				 			rendered="#{empty usuarioManagedBean.dadosSessao.nome}" />
 				 		<h:outputLabel 
 				 			style="font-weight:bold"  
 				 			value="#{usuarioManagedBean.dadosSessao.nome}" 
 				 			rendered="#{not empty usuarioManagedBean.dadosSessao.nome}" />
 				 			
					</h:panelGrid>
					
 				 		<p:commandButton 
							value="Meus Dados" 
							action="/dinamic/pages/perfilUsuario/perfilUsuario" 
							ajax="false" 
							update="panelMenu" 
							rendered="#{menuManagedBean.logado}"
							/>
						<p:commandButton 
							value="#{mensagem['botao.logout']}"
							action="#{funcionarioManagedBean.deslogar()}" 
							ajax="false"
							update="panelMenu"
							rendered="#{menuManagedBean.logado}"
						/>
						
					</p:panel>
				
					<div style="font-size:12px;">
					
						<p:menu style="width:90%;font-family: tahoma" icon=""  model="#{menuManagedBean.navegacao}" />
						<p:menu style="width:90%;font-family: tahoma" model="#{menuManagedBean.ponto}" icon="ui-icon-clock"  rendered="#{menuManagedBean.logado}" />
						<p:menu style="width:90%; font-family: tahoma" model="#{menuManagedBean.usuario}" icon="ui-icon-person" rendered="#{(menuManagedBean.logado) and  (!menuManagedBean.verificarPerfil == false)}"/>
						<p:menu style="width:90%; font-family: tahoma" model="#{menuManagedBean.perfil}" icon="ui-icon-contact" rendered="#{menuManagedBean.logado}" /> 
						<p:menu style="width:90%; font-family: tahoma" model="#{menuManagedBean.atividades}" icon="ui-icon-clipboard" rendered="#{menuManagedBean.logado}" />
						<p:menu style="width:90%; font-family: tahoma" model="#{menuManagedBean.projeto}" icon="ui-icon-bookmark" rendered="#{menuManagedBean.logado}"/> 
						<p:menu style="width:90%; font-family: tahoma" model="#{menuManagedBean.relatorio}" icon="ui-icon-document" rendered="#{menuManagedBean.logado}" />
						
					</div>
				</h:form>
			</ui:insert>
		</div>
	</body>
</ui:composition>
